<template>
  <header>
    <div class="title">
        首页
    </div>
    <button @click="dianji">新增任务</button>
  </header>
</template>

<script setup>
import { useRouter } from 'vue-router';
var $router=useRouter()
var dianji=()=>{
   $router.push('/newadd')
}
</script>

<style scoped>
   header{
    height: 80px;
    width: 100%;
    /* background-color: aqua; */
    box-sizing: border-box;
   }
   .title{
    text-align: center;
    color: rgb(23, 64, 78);
   }
   button{
    width: 60px;
    height: 40px;
    background-color: rgb(243, 238, 238);
    /* color: rgb(75, 235, 75); */
    margin-top: 10px;
    margin-left: 10px;
    border: none;
   }
</style>